package tinglema.server.entity.domain;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.*;

/**
 * 评论表(Comment)表实体类
 *
 * @author delucia
 * @since 2025-05-06 02:51:49
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@EqualsAndHashCode(callSuper = false)
public class Comment extends Model<Comment> {
    //评论ID 唯一标识
    private Integer id;
    //用户ID 关联consumer.id
    private Integer userId;
    //歌曲ID 关联song.id
    private Integer songId;
    //歌单ID 关联song_list.id
    private Integer songListId;
    //评论内容
    private String content;
    //创建时间 评论时间
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:MM:ss")
    private Date createTime;
    //类型 0:歌曲 1:歌单
    private Integer type;
    //点赞数 被点赞次数
    private Integer up;


}

